<script> 
 var arr=new Array(1,2,3,4,5,6,7,8,9); 
 with (document) 
 { 
 write("数组为:"); 
 write(arr.join(",")); 
 arr.reverse(); 
 write("<br>反序后:") 
 write(arr.join(",")); 
 } 
</script>
